package com.siloam.vo;

import java.text.SimpleDateFormat;

import com.siloam.module.Prayer;

public class PrayerVO {
	
	private int id;
	private String content;
	private String writeTime;
	private String status;
	private String scope;
	private String author;
	
	public PrayerVO(Prayer prayer){
		setId(prayer.getId());
		setContent(prayer.getContent());
		setStatus(prayer.getStatusText());
		setScope(prayer.getScopeText());
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		setWriteTime(sdf.format(prayer.getDate()));
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getWriteTime() {
		return writeTime;
	}
	public void setWriteTime(String writeTime) {
		this.writeTime = writeTime;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getScope() {
		return scope;
	}
	public void setScope(String scope) {
		this.scope = scope;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
}
